const Mock = require('mockjs')

const data = Mock.mock({
    'items|100': [{
        'formID': '@increment(1)',
        formCompanyName: '@cword(14)',
        formCompanyCity: '@cword(2,3)',
        formInvestigationName: "@date" + " ~ " + "@date" + " 月报",
        'formStartTotalNum|5': '@integer(0,9)',
        'formEndTotalNum|5': '@integer(0,9)',
        formDecreaseType: '@cword(10)',
        formFirstReason: '@cword(10)',
        formSecondReason: '@cword(10)',
        formThirdReason: '@cword(10)',
        formReasonDescription: '@cword(50)',
        formExamineStatus: '@integer(0,7)',
        formSubmitTime: '@datetime'
    }],
})

module.exports = [
    {
        url: '/province/dataFormExamine/getAllForms',
        type: 'get',
        response: config => {    
            const items = data.items
            return {
                code: 200,
                data: {
                    items: items
                }
            }
        }
    }
]
